package com.wclass.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.wclass.entity.IndexSearchWord;
import com.wclass.mapper.IndexSearchWordMapper;
import com.wclass.service.IIndexSearchWordService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 首页搜索关键词 服务实现类
 * </p>
 *
 * @author SEN
 * @since 2019-03-11
 */
@Service
public class IndexSearchWordServiceImpl extends ServiceImpl<IndexSearchWordMapper, IndexSearchWord> implements IIndexSearchWordService {

    @Override
    public Page<IndexSearchWord> getHotIndexSearch(Page<IndexSearchWord> page) {
        return page.setRecords(this.baseMapper.getHotIndexSearch(page));
    }

}
